/**
 * 
 */
package cn.gov.msa.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import cn.gov.msa.collection.WxService;
import cn.gov.msa.util.encrypt.BizMsgCrypt;
import net.sf.json.JSONObject;

/**
 * @author Administrator
 *
 */

@RestController
@RequestMapping(value = "/main", produces="text/plain;charset=UTF-8")
public class MainController {

	@RequestMapping(value="/main")
	public String index() throws Exception{
		
		JSONObject json = new JSONObject();
		json.put("openId", "olOWI1FAiQu7tYjtxWZN-MAl_D3M");
		json.put("content", "您的“水上水下施工作业通航安全申请”业务已办结");
		json.put("appName", "水上水下施工作业通航安全申请");
		json.put("operation", "办结");
		json.put("url", "");
		WxService.notify(json);
		
		return "";
	}
}
